package com.yuyang.wifi.activitys.mine;

import android.content.Intent;
import android.os.Bundle;
import android.view.ViewGroup.LayoutParams;
import android.widget.TextView;

import com.yuyang.wifi.R;
import com.yuyang.wifi.base.BaseActivity;

import butterknife.BindView;
import cn.jpush.android.api.JPushInterface;

public class TestActivity extends BaseActivity {

    @BindView(R.id.tv)
    TextView tv;


    @Override
    protected void initActionBar() {

    }

    @Override
    protected int getLayoutResId() {
        return R.layout.test_notic;
    }

    @Override
    protected void initContentView() {
        tv.setText("用户自定义打开的Activity");
        Intent intent = getIntent();
        if (null != intent) {
            Bundle bundle = getIntent().getExtras();
            String title = null;
            String content = null;
            if (bundle != null) {
                title = bundle.getString(JPushInterface.EXTRA_NOTIFICATION_TITLE);
                content = bundle.getString(JPushInterface.EXTRA_ALERT);
            }
            tv.setText("Title : " + title + "  " + "Content : " + content);
        }
    }

}
